Repository navigation
feat(ios): set notification permission on simulators through SpringBoard's settings file - #5046
imranbarbhuiya wants to merge 9 commits into
Conversation
|
Thanks for the clear change. This PR is ready at c985976 and no code defects were found, and no conflicts are known. The Smoke Tests failure is in the Android smoke checks (an empty Android snapshot), and this diff touches only iOS simulator settings, contract docs and docs, so it looks unrelated. The two cancelled Body rules runs were superseded, not failed. Not verified here: the change was not run on a simulator, so the grant, deny, reset and |
…, and keep the settings path host-only
…ess, and document the reopen
|
|
Thanks for the quick follow-up. At eec04ce, each note from the earlier review (c985976) is addressed, and the code is ready to merge. The Coverage job (the |
|
|
Thanks for the follow-up. The code at 2cae4b3 looks good, and the coverage failure seen at eec04ce is gone after e1abaa0. Every check passes except Body rules, which was cancelled rather than failed. It reads only the PR body, so it does not relate to the diff. There are no conflicts. Please re-run Body rules until it is green before merge. Not verified here: no simulator was run, so the snapshot, open --foreground and deny-keeps-the-process results rest on the author's comment, and the unit tests were not re-run locally. |
|
Thanks for the careful work and the follow-ups. After looking at where this runs, core will not take it. The change works only on a simulator whose files are on the daemon's host. Limrun, other hosted providers and physical devices still refuse. It also adds the first host-side write into a simulator's private files, a SpringBoard restart, and an app relaunch outside the |
Summary
Closes #4668. Follow-up to #4667.
simctl privacyrefuses notifications, sosettings permission … notificationson an iOS simulator always failed andallskipped it.Now, on a simulator this host runs:
BBSectionInfoindata/Library/BulletinBoard/VersionedSectionInfo.plist, the record SpringBoard keeps for a prompt answer, after the old SpringBoard andusernotificationsdprocesses have exited, then reads it back once SpringBoard is up again.grant all,deny allandreset allset notifications last, restarting at most once.UNSUPPORTED_OPERATIONand a typed reason before any restart;allskips it with a warning.It uses the bundled
plistpackage; per-keyplutiledits were rejected. Wix's applesimutils edits the same file.Before / after
iPhone 17 Pro simulator, iOS 27.2:
Validation
Head
2cae4b38c,check:affected --run --head(exactCommit: true): format, lint, typecheck, layering, fallow, build and vitest-related pass.pnpm gateprovider-integration, command-docs, docs-links and docs-prose pass.Probe app:
resetprompts;grant,deny, andgrantbefore first launch read authorized, denied, authorized without a prompt;deny all,reset all,grant allread denied, prompt, authorized. With the probe in front,denyandgrantbring it back to the front, andopen --foregroundstill finds it.